home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_02
/
9n02026a
< prev
next >
Wrap
Text File
|
1990-12-11
|
327b
|
14 lines
int
TreeSearch( int NodeNumb, int Value )
{
if( NodeNumb = -1 || Value == Tree[NodeNumb].Data )
return NodeNumb;
if( Value < Tree[NodeNumb].Data )
return TreeSearch( Tree[NodeNumb].Left );
else
return TreeSearch( Tree[NodeNumb].Right );
}